import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty } from "class-validator";

export class EditPasswordDto {
    @ApiProperty({
        description:'密码'
    })
    @IsNotEmpty({
        message:'密码不能为空'
    })
    password: string;

    @ApiProperty({
        description:'确认密码'
    })
    @IsNotEmpty({
        message:'确认密码不能为空'
    })
    password2: string;
}
